<template>
  <el-dropdown trigger="click" placement="bottom">
    <el-button class="el-dropdown-link search-btn-style more-btn">更多操作<i v-if="icon" class="el-icon-caret-bottom"/></el-button>
    <el-dropdown-menu slot="dropdown" class="mobile-menu">
      <slot/>
    </el-dropdown-menu>
  </el-dropdown>
</template>
<script>
export default {
  props: {
    icon: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
    };
  }
};
</script>

<style lang="scss" scoped>
  .img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .mobile-menu {
    &::v-deep {
      .el-dropdown-menu__item {
        width: auto !important;
        max-width: 160px;
        font-size: 14px !important;
        text-align: center;
      }
    }
  }
  .more-btn{
    width: 80px;
    height: 32px;
    padding: 0;
    font-size: 14px;
    margin-right: 12px;
  }
</style>
